package com.oyjd.beauty.bean.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * 问题与解答实体
 * 
 * @author <b>欧建东<br/>
 *         Email:oyjd@163.com</b>
 * @version 1.0
 */
@Entity
@Table(name = "T_QUESTION")
public class Question implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 2205544421507283752L;

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name = "ID", length = 32)
	private String id;

	/**
	 * 商品ID
	 */
	@Column(name = "GOODS_ID", length = 32)
	private String goodsId;

	/**
	 * 问题
	 */
	@Column(name = "ASK", length = 300)
	private String ask;

	/**
	 * 答案
	 */
	@Column(name = "ANSWER", length = 3000)
	private String answer;

	/**
	 * 提问者
	 */
	@Column(name = "ASKOR", length = 32)
	private String askor;

	/**
	 * 提问时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "ASK_TIME")
	private Date askTime;

	/**
	 * 解答者
	 */
	@Column(name = "ANSWEROR", length = 32)
	private String answeror;

	/**
	 * 解答时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "ANSWER_TIME")
	private Date answerTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public String getAsk() {
		return ask;
	}

	public void setAsk(String ask) {
		this.ask = ask;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public String getAskor() {
		return askor;
	}

	public void setAskor(String askor) {
		this.askor = askor;
	}

	public Date getAskTime() {
		return askTime;
	}

	public void setAskTime(Date askTime) {
		this.askTime = askTime;
	}

	public String getAnsweror() {
		return answeror;
	}

	public void setAnsweror(String answeror) {
		this.answeror = answeror;
	}

	public Date getAnswerTime() {
		return answerTime;
	}

	public void setAnswerTime(Date answerTime) {
		this.answerTime = answerTime;
	}

}